package com.woniu.aftercare.controller;

import com.woniu.aftercare.pojo.Review;
import com.woniu.aftercare.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AftercareController {
    @Autowired
    private ReviewService reviewService;

    @GetMapping("/queryAllAfter")
    public List<Review> queryAllAfter(){
        return reviewService.list();
    }

}
